/**
 * @author sahsharm
 */
(function($) {
	var source;
	var template;
	var data1 = {
		lessons : [{
			name : "Lesson 1",
			description : "This is lesson 1"
		},
		{
			name : "Lesson 2",
			description : "This is lesson 2"
		},
		{
			name : "Lesson 3",
			description : "This is lesson 3"
		},
		 {
			name : "Lesson 4",
			description : "This is lesson 4"
		}]
	};

	$.get("/EDFU/course/template/lesson_info.txt", function(data) {
		$(data).filter('script[type="text/x-handlebars"]').each(function() {
			template = Handlebars.compile($(this).html());
		});
		$("#lesson-container").html(template(data1));
		$('.collapse').collapsiblePanel();
	});
})(jQuery);
